#include <ros/ros.h>
#include <custom_msg/custom.h>

void callback(const custom_msg::custom msg)
{
    ROS_WARN("sex:%s",msg.sex.c_str());
    ROS_WARN("name:%s",msg.name.c_str());
}

int main(int argc, char  *argv[])
{
    ros::init(argc,argv,"rev_msg_node");
    ros::NodeHandle nh;
    ros::Subscriber sub = nh.subscribe("custom_msg",10,callback);

    ros::spin();

    return 0;
}
